<!DOCTYPE html>
<html lang="en">

  <head>
    <title>获取当前客户端的IP地址</title>
    <style type=text/css>
      .ok{
    	   color:red;
         font-size:14px;
      }
    </style>
  </head>
  
  <body>
    <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
    <center>
      <script type="text/javascript">
      //document.write(returnCitySN["cip"]+','+returnCitySN["cname"]);
      document.write("<div class=\"ok\">"+returnCitySN["cip"]+"<br/>"+returnCitySN["cname"]+ "</div>")
      </script>
    </center>
  </body>

</html>